//
//  InformationViewController.m
//  iEPD
//
//  Created by xavi on 1/2/13.
//  Copyright (c) 2013 Mobioneer Ltd. All rights reserved.
//

#import "InformationViewController.h"
#import "SettingsViewController.h"
@interface InformationViewController ()

@end

@implementation InformationViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    NSLog(@"indexSelectedOfSetting: %d",self.indexSelectedOfSetting);
    switch (self.indexSelectedOfSetting) {
        case 1:
            self.title = NSLocalizedString(@"HELP", nil);
            [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle]
                                                                                           pathForResource:@"help" ofType:@"html"]isDirectory:NO]]];
            break;
        case 2:
            self.title = NSLocalizedString(@"ABOUT", nil);
            [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle]
                                                                                           pathForResource:@"about" ofType:@"html"]isDirectory:NO]]];
            break;
        default:
            break;
    }
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

@end
